package com.arrogames.rgblabyrinth.menu {
	
	import feathers.controls.ScreenNavigator;
	import feathers.controls.ScreenNavigatorItem;
	import feathers.motion.transitions.ScreenFadeTransitionManager

	public class RGBNavigator extends ScreenNavigator {
		
		public static const LOADING:String = "loading_application";
		public static const MAINMENU:String = "mainMenu";
		public static const NEWGAME:String = "newGame";
		public static const CONTINUEGAME:String = "continueGame";
		public static const LOADINGGAME:String = "loading_game";
		public static const GAME:String = "game";

		private var continueScreen:ContinueGameScreen;

		private var tManager:ScreenFadeTransitionManager;
		
		public function RGBNavigator() {
			super();
			
			continueScreen = new ContinueGameScreen();
			
			this.addScreen(LOADING, new ScreenNavigatorItem(LoadApplicationScreen));
			this.addScreen(MAINMENU, new ScreenNavigatorItem(MainMenuScreen));
			this.addScreen(NEWGAME, new ScreenNavigatorItem(NewGameScreen));
			this.addScreen(CONTINUEGAME, new ScreenNavigatorItem(continueScreen));
			this.addScreen(LOADINGGAME, new ScreenNavigatorItem(LoadGameScreen));
			
			this.showScreen(LOADING);
			
			tManager = new ScreenFadeTransitionManager(this);
		}
		
		public function set saveGames(value:Array):void {
			continueScreen.savegames = value;
		}
		
	}
}